package com.globalresources.business.inface;

import java.util.List;
import com.globalresources.po.Authority;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 7, 2009 3:11:17 AM
 */
public interface IAuthorityService {
	
	/**
	 * load authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	*@param pagesize
	*@param startrow
	*@return
	 */
	public List<Authority> getAuthorities(String authority, int pagesize, int startrow);
	
	/**
	 * count authorities
	*@author aaron.lu(luzhiyuan)
	*@param authority
	*@return
	 */
	public int countAuthorities(String authority);
	
	/**
	 * load a authority by id
	*@author aaron.lu(luzhiyuan)
	*@param id
	*@return
	 */
	public Authority getAuthority(Integer id);
	
	/**
	 * save a authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	 */
	public void saveAuthority(Authority authority);
	
	/**
	 * update a authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	 */
	public void updateAuthority(Authority authority);
	
	/**
	 * delete a authority
	*@author aaron.lu(luzhiyuan)
	*@param authority
	 */
	public void deleteAuthority(Authority authority);
	
	/**
	 * list authority
	*@author songduanlei@gmail.com
	*@param null
	 */
	public List<Authority> listAuthority();

}
